#define _CRT_SECURE_NO_WARNINGS 1
#include "Slist2.h"
//void TestSlist() {
	

int main()
{
	Node* plist = NULL;
	SlistPushFront(&plist, 1);
	SlistPushFront(&plist, 2);
	SlistPushFront(&plist, 3);
	SlistPushFront(&plist, 4);

	SlistPushBack(&plist, 5);

	printList(plist);
	SlistPopBack(&plist);
	printList(plist);
	SlistPopFront(&plist);
	printList(plist);
	Node* result = SlistFind(plist, 3);
	if (result) {
		SlistErase(&plist, result);
	}
	printList(plist);
	printf("%d\n", getLength(plist));
	//TestSlist();
	return 0;
}